package com.qyt.hotel.service;

import com.qyt.hotel.entity.Guest;
import com.qyt.hotel.entity.ResideState;

import java.util.List;

public interface GuestService {
    List<Guest> getGuestList(String guestName, Integer resideStateId);

    List<ResideState> getResideStateList();

    List<String> getRoomIdList(Integer roomTypeId, Integer roomStateId);

    Integer addGuest(String guestName, Integer guestNum, String identityId, String phone, String resideDate, Integer roomTypeId, String roomId, Double deposit);

    Integer updateRoomStateFree(String roomId);

    Integer updateRoomState(String roomId);

    Guest getOne(Integer guestId);

    Integer updateGuest(Integer guestId, String guestName, Integer guestNum, String identityId, String phone, String resideDate, Integer roomTypeId, String roomId, Double deposit);

    // 修改原来已使用的房间为空闲
    Integer updateOldRoomState(String oldRoomId);

    void deleteGuest(Integer guestId);

    // 结账
    void checkout(Integer guestId, Double totalMoney, String leaveDate);
}
